fix(strix): route direct-OpenAI fallbacks through the OpenAI API base - #1324
Closed
seonghobae wants to merge 9 commits into
Closed
fix(strix): route direct-OpenAI fallbacks through the OpenAI API base#1324seonghobae wants to merge 9 commits into
seonghobae wants to merge 9 commits into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Required-CI evidence (ContextualWisdomLab/bandscope#1021 strix run 32800796577, 2026-08-25): with
provider_mode=nvidia_nim, the workflow setsLLM_API_BASE_FILE=https://integrate.api.nvidia.com/v1, and the gate reused that base for the contracted final fallbackopenai-direct/gpt-5.4. litellm sent OpenAI requests to the NVIDIA NIM edge, whose gateway answered a plain-text404 page not found. The scan produced no vulnerability report artifact, so required CI failed closed on every org PR during NIM provider exhaustion.Fix
strix_quick_gate.sh— explicit direct-OpenAI fallback models resolve their API base throughSTRIX_OPENAI_FALLBACK_API_BASE_FILEwhen provisioned; without provisioning they resolve no override so litellm defaults tohttps://api.openai.com/v1. Primary-provider models keep existing resolution. Non-https overrides fail configuration (exit 2).strix.yml— provisions$RUNNER_TEMP/openai_fallback_api_base.txtalongside the OpenAI fallback key file and passes it into the gate environment.Verification
bash scripts/ci/strix_required_workflow_smoke.sh: passed.bash -n scripts/ci/strix_quick_gate.sh: clean.Expected effect
After merge, strix PR scans fall back to a reachable OpenAI endpoint when NIM exhausts, restoring authoritative complete scans (or genuine findings) instead of provider-unavailable failures across the org's PR queues.
Summary by CodeRabbit
버그 수정
변경 사항
문서
테스트